package com.ktgj.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ViphallServiceInstructionsMapper;
import com.ktgj.service.domain.ViphallServiceInstructions;
import com.ktgj.service.service.IViphallServiceInstructionsService;

/**
 * 服务须知Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-22
 */
@Service
public class ViphallServiceInstructionsServiceImpl implements IViphallServiceInstructionsService 
{
    @Autowired
    private ViphallServiceInstructionsMapper viphallServiceInstructionsMapper;

    /**
     * 查询服务须知
     * 
     * @param serviceId 服务须知ID
     * @return 服务须知
     */
    @Override
    public ViphallServiceInstructions selectViphallServiceInstructionsById(Long serviceId)
    {
        return viphallServiceInstructionsMapper.selectViphallServiceInstructionsById(serviceId);
    }

    /**
     * 查询服务须知列表
     * 
     * @param viphallServiceInstructions 服务须知
     * @return 服务须知
     */
    @Override
    public List<ViphallServiceInstructions> selectViphallServiceInstructionsList(ViphallServiceInstructions viphallServiceInstructions)
    {
        return viphallServiceInstructionsMapper.selectViphallServiceInstructionsList(viphallServiceInstructions);
    }

    /**
     * 新增服务须知
     * 
     * @param viphallServiceInstructions 服务须知
     * @return 结果
     */
    @Override
    public int insertViphallServiceInstructions(ViphallServiceInstructions viphallServiceInstructions)
    {
        return viphallServiceInstructionsMapper.insertViphallServiceInstructions(viphallServiceInstructions);
    }

    /**
     * 修改服务须知
     * 
     * @param viphallServiceInstructions 服务须知
     * @return 结果
     */
    @Override
    public int updateViphallServiceInstructions(ViphallServiceInstructions viphallServiceInstructions)
    {
        return viphallServiceInstructionsMapper.updateViphallServiceInstructions(viphallServiceInstructions);
    }

    /**
     * 批量删除服务须知
     * 
     * @param serviceIds 需要删除的服务须知ID
     * @return 结果
     */
    @Override
    public int deleteViphallServiceInstructionsByIds(Long[] serviceIds)
    {
        return viphallServiceInstructionsMapper.deleteViphallServiceInstructionsByIds(serviceIds);
    }

    /**
     * 删除服务须知信息
     * 
     * @param serviceId 服务须知ID
     * @return 结果
     */
    @Override
    public int deleteViphallServiceInstructionsById(Long serviceId)
    {
        return viphallServiceInstructionsMapper.deleteViphallServiceInstructionsById(serviceId);
    }
}
